package snmptest.gateway;

import com.isnmp.common.snmp.SNMPFactory;
import com.isnmp.common.snmp.SNMPTarget;

public class Test {
    public static void main(String[] args) {
        try {
            SNMPTarget node = new SNMPTarget();
            node.nodeIP = "127.0.0.1";
            node.readCommunity = "public";
            node.writeCommunity = "private";
            node.port = 161;
            SNMPFactory.init(1, "", 0);

            SNMPFactory.getSNMPAPI().setOIDValue("1.3.6.1.2.1.1.4", "0", "lisl", node);
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
            ex.printStackTrace();
        }
    }
}